package com.lc.fbtp.mem.core.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.lc.fbtp.draftmsg.api.paper.DraftInfo;
import com.lc.fbtp.draftmsg.api.paper.MsgId;
import com.lc.fbtp.mem.core.refactor.RefactorMessageSender;

@RestController
public class TestController {
	@Autowired
	private RefactorMessageSender refactorMessageSender;
	@RequestMapping("/testSend")
	public String testSend(){
		MsgId msgId = refactorMessageSender.send(new DraftInfo());
		return "msgId : " + msgId.getId();
	}
}
